package com.qianya.weishi_server.constant;

/**
 * @author LLL
 * @description
 * @since 2022-10-19 14:50
 **/
public class RedisKeyConstant {

    /**
     * 自定义 hKey
     */
    public static final String ARTICLE_HITS_PREFIX_HASH = "article:hits:article-id-";
    public static final String ARTICLE_LIKES_PREFIX_HASH = "article:likes:article-id-";
    public static final String ARTICLE_COMMENT_LIKES_PREFIX_HASH = "article:comment:likes:comment-id-";

    public static final String TOPIC_HITS_PREFIX_HASH = "topic:hits:topic-id-";
    public static final String TOPIC_LIKES_PREFIX_HASH = "topic:likes:topic-id-";
    public static final String TOPIC_COMMENT_LIKES_PREFIX_HASH = "topic:comment:likes:comment-id-";

    public static final String HITS_COUNT_KEY = "hits-count";
    public static final String LIKES_KEY = "user-id-";
    public static final String LIKES_COUNT_KEY = "likes-count";

}
